package com.java47.mapper;

import com.java47.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @authoru java1214
 * @create 2023-01-04 13:42
 */
@Repository
public interface UserMapper {
    //查询
    public List<User> findAll();

    //根据id查询
    public User findById(@Param("id") Long id);

    //添加
    public Integer add(User user);

    //更新
    public Integer update(User user);

    //删除
    public Integer deleteById(@Param("id") Long id);
}
